package com.sun.dto;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentFontStyle;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import com.alibaba.excel.enums.poi.VerticalAlignmentEnum;
import com.sun.entity.Drug;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * @Project: hospitalDrugInformationManagement
 * @Author: 86178
 * @Date: 2023/3/2 8:53
 * @FileName: DrugDto
 * @Description: ""
 */
@EqualsAndHashCode
@Data
@AllArgsConstructor
@NoArgsConstructor
@ContentFontStyle(fontHeightInPoints = 10)
public class DrugDto extends Drug {
    @ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER, verticalAlignment = VerticalAlignmentEnum.CENTER)
    @ColumnWidth(20)
    @ExcelProperty(value = "药品分类", index = 4)
    private String categoryName;
    @ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER, verticalAlignment = VerticalAlignmentEnum.CENTER)
    @ColumnWidth(25)
    @ExcelProperty(value = "药品厂商", index = 5)
    private String supplierName;
    @ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER, verticalAlignment = VerticalAlignmentEnum.CENTER)
    @ColumnWidth(20)
    @ExcelProperty(value = "进价", index = 3)
    private String price;
    /**
     * 厂商id
     */
    @ExcelIgnore
    private Long supplierId;
}
